package cn.chencaiju.domain;

import java.util.List;

public class Category {
	private int id;
	private String name;
	private int num;
	private List<Post> posts; 

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Category [id=");
		builder.append(id);
		builder.append(", name=");
		builder.append(name);
		builder.append(", num=");
		builder.append(num);
		builder.append("]");
		return builder.toString();
	}

	public int getCid() {
		return id;
	}

	public void setCid(int cid) {
		this.id = cid;
	}

	public String getTitle() {
		return name;
	}

	public void setTitle(String title) {
		this.name = title;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public Category() {
	}

	public List<Post> getPosts() {
		return posts;
	}

	public void setPosts(List<Post> posts) {
		this.posts = posts;
	}

}
